package com.kingdee.eas.ec.project.scence.app;

import javax.ejb.*;
import java.rmi.RemoteException;
import com.kingdee.bos.*;
import com.kingdee.bos.util.BOSObjectType;
import com.kingdee.bos.metadata.IMetaDataPK;
import com.kingdee.bos.metadata.rule.RuleExecutor;
import com.kingdee.bos.metadata.MetaDataPK;
//import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean;
import com.kingdee.bos.framework.ejb.AbstractBizControllerBean;
//import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.bos.dao.IObjectCollection;
import com.kingdee.bos.service.ServiceContext;
import com.kingdee.bos.service.IServiceContext;
import com.kingdee.eas.framework.Result;
import com.kingdee.eas.framework.LineResult;
import com.kingdee.eas.framework.exception.EASMultiException;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;

import java.lang.String;
import com.kingdee.eas.common.EASBizException;
import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.eas.ec.material.basedata.OutInWareBaseBillCollection;
import com.kingdee.eas.ec.project.scence.GaAttaintInfo;
import com.kingdee.eas.ec.material.inv.app.MaterialInvBillControllerBean;
import com.kingdee.bos.metadata.entity.SelectorItemCollection;
import com.kingdee.eas.framework.CoreBaseCollection;
import com.kingdee.eas.ec.project.scence.GaAttaintCollection;
import com.kingdee.eas.ec.material.basedata.MaterialBaseBillCollection;
import com.kingdee.eas.framework.CoreBillBaseCollection;
import com.kingdee.eas.framework.CoreBaseInfo;
import com.kingdee.eas.framework.BillBaseCollection;
import com.kingdee.eas.ec.basedata.BaseBillCollection;
import com.kingdee.eas.ec.material.inv.MaterialInvBillCollection;
import com.kingdee.eas.framework.ObjectBaseCollection;



public abstract class AbstractGaAttaintControllerBean extends MaterialInvBillControllerBean implements GaAttaintController
{
    protected AbstractGaAttaintControllerBean()
    {
    }

    protected BOSObjectType getBOSType()
    {
        return new BOSObjectType("94E1F3B5");
    }

    public GaAttaintInfo getGaAttaintInfo(Context ctx, IObjectPK pk) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("4cb3c74d-78b7-45e6-ab02-c85db4961768"), new Object[]{ctx, pk});
            invokeServiceBefore(svcCtx);
            GaAttaintInfo retValue = (GaAttaintInfo)_getValue(ctx, pk);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectValue _getValue(Context ctx, IObjectPK pk) throws BOSException, EASBizException
    {
        return super._getValue(ctx, pk);
    }

    public GaAttaintInfo getGaAttaintInfo(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("db308261-3515-4871-8211-cb539c909103"), new Object[]{ctx, pk, selector});
            invokeServiceBefore(svcCtx);
            GaAttaintInfo retValue = (GaAttaintInfo)_getValue(ctx, pk, selector);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectValue _getValue(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
    {
        return super._getValue(ctx, pk, selector);
    }

    public GaAttaintInfo getGaAttaintInfo(Context ctx, String oql) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("cdf5d2e6-1a4a-4082-ac2c-d3ca51817e6d"), new Object[]{ctx, oql});
            invokeServiceBefore(svcCtx);
            GaAttaintInfo retValue = (GaAttaintInfo)_getValue(ctx, oql);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectValue _getValue(Context ctx, String oql) throws BOSException, EASBizException
    {
        return super._getValue(ctx, oql);
    }

    public GaAttaintCollection getGaAttaintCollection(Context ctx) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("1a53d551-d29c-4918-969d-e365139e9165"), new Object[]{ctx});
            invokeServiceBefore(svcCtx);
            GaAttaintCollection retValue = (GaAttaintCollection)_getCollection(ctx, svcCtx);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx) throws BOSException
    {
        return super._getCollection(ctx, svcCtx);
    }

    public GaAttaintCollection getGaAttaintCollection(Context ctx, EntityViewInfo view) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("13606406-9ce9-407c-a6d6-40325bfe7840"), new Object[]{ctx, view});
            invokeServiceBefore(svcCtx);
            GaAttaintCollection retValue = (GaAttaintCollection)_getCollection(ctx, svcCtx, view);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx, EntityViewInfo view) throws BOSException
    {
        return super._getCollection(ctx, svcCtx, view);
    }

    public GaAttaintCollection getGaAttaintCollection(Context ctx, String oql) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("cf06178b-4c5c-4554-b2dc-6157c8fb7512"), new Object[]{ctx, oql});
            invokeServiceBefore(svcCtx);
            GaAttaintCollection retValue = (GaAttaintCollection)_getCollection(ctx, svcCtx, oql);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx, String oql) throws BOSException
    {
        return super._getCollection(ctx, svcCtx, oql);
    }

    public MaterialInvBillCollection getMaterialInvBillCollection (Context ctx) throws BOSException
    {
    	return (MaterialInvBillCollection)(getGaAttaintCollection(ctx).cast(MaterialInvBillCollection.class));
    }
    public MaterialInvBillCollection getMaterialInvBillCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (MaterialInvBillCollection)(getGaAttaintCollection(ctx, view).cast(MaterialInvBillCollection.class));
    }
    public MaterialInvBillCollection getMaterialInvBillCollection (Context ctx, String oql) throws BOSException
    {
    	return (MaterialInvBillCollection)(getGaAttaintCollection(ctx, oql).cast(MaterialInvBillCollection.class));
    }
    public OutInWareBaseBillCollection getOutInWareBaseBillCollection (Context ctx) throws BOSException
    {
    	return (OutInWareBaseBillCollection)(getGaAttaintCollection(ctx).cast(OutInWareBaseBillCollection.class));
    }
    public OutInWareBaseBillCollection getOutInWareBaseBillCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (OutInWareBaseBillCollection)(getGaAttaintCollection(ctx, view).cast(OutInWareBaseBillCollection.class));
    }
    public OutInWareBaseBillCollection getOutInWareBaseBillCollection (Context ctx, String oql) throws BOSException
    {
    	return (OutInWareBaseBillCollection)(getGaAttaintCollection(ctx, oql).cast(OutInWareBaseBillCollection.class));
    }
    public MaterialBaseBillCollection getMaterialBaseBillCollection (Context ctx) throws BOSException
    {
    	return (MaterialBaseBillCollection)(getGaAttaintCollection(ctx).cast(MaterialBaseBillCollection.class));
    }
    public MaterialBaseBillCollection getMaterialBaseBillCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (MaterialBaseBillCollection)(getGaAttaintCollection(ctx, view).cast(MaterialBaseBillCollection.class));
    }
    public MaterialBaseBillCollection getMaterialBaseBillCollection (Context ctx, String oql) throws BOSException
    {
    	return (MaterialBaseBillCollection)(getGaAttaintCollection(ctx, oql).cast(MaterialBaseBillCollection.class));
    }
    public BaseBillCollection getBaseBillCollection (Context ctx) throws BOSException
    {
    	return (BaseBillCollection)(getGaAttaintCollection(ctx).cast(BaseBillCollection.class));
    }
    public BaseBillCollection getBaseBillCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (BaseBillCollection)(getGaAttaintCollection(ctx, view).cast(BaseBillCollection.class));
    }
    public BaseBillCollection getBaseBillCollection (Context ctx, String oql) throws BOSException
    {
    	return (BaseBillCollection)(getGaAttaintCollection(ctx, oql).cast(BaseBillCollection.class));
    }
    public BillBaseCollection getBillBaseCollection (Context ctx) throws BOSException
    {
    	return (BillBaseCollection)(getGaAttaintCollection(ctx).cast(BillBaseCollection.class));
    }
    public BillBaseCollection getBillBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (BillBaseCollection)(getGaAttaintCollection(ctx, view).cast(BillBaseCollection.class));
    }
    public BillBaseCollection getBillBaseCollection (Context ctx, String oql) throws BOSException
    {
    	return (BillBaseCollection)(getGaAttaintCollection(ctx, oql).cast(BillBaseCollection.class));
    }
    public CoreBillBaseCollection getCoreBillBaseCollection (Context ctx) throws BOSException
    {
    	return (CoreBillBaseCollection)(getGaAttaintCollection(ctx).cast(CoreBillBaseCollection.class));
    }
    public CoreBillBaseCollection getCoreBillBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (CoreBillBaseCollection)(getGaAttaintCollection(ctx, view).cast(CoreBillBaseCollection.class));
    }
    public CoreBillBaseCollection getCoreBillBaseCollection (Context ctx, String oql) throws BOSException
    {
    	return (CoreBillBaseCollection)(getGaAttaintCollection(ctx, oql).cast(CoreBillBaseCollection.class));
    }
    public ObjectBaseCollection getObjectBaseCollection (Context ctx) throws BOSException
    {
    	return (ObjectBaseCollection)(getGaAttaintCollection(ctx).cast(ObjectBaseCollection.class));
    }
    public ObjectBaseCollection getObjectBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (ObjectBaseCollection)(getGaAttaintCollection(ctx, view).cast(ObjectBaseCollection.class));
    }
    public ObjectBaseCollection getObjectBaseCollection (Context ctx, String oql) throws BOSException
    {
    	return (ObjectBaseCollection)(getGaAttaintCollection(ctx, oql).cast(ObjectBaseCollection.class));
    }
    public CoreBaseCollection getCoreBaseCollection (Context ctx) throws BOSException
    {
    	return (CoreBaseCollection)(getGaAttaintCollection(ctx).cast(CoreBaseCollection.class));
    }
    public CoreBaseCollection getCoreBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (CoreBaseCollection)(getGaAttaintCollection(ctx, view).cast(CoreBaseCollection.class));
    }
    public CoreBaseCollection getCoreBaseCollection (Context ctx, String oql) throws BOSException
    {
    	return (CoreBaseCollection)(getGaAttaintCollection(ctx, oql).cast(CoreBaseCollection.class));
    }
}